# coding: utf-8

from enum import unique

from common.constant import StatusEnum

TO_RATE_CACHE_KEY = 'to_rate'

PROTOCOL_VERSION_KEY = 'protocol_version'

TODAY_DEMAND_COUNT = 'today_demand_count'


@unique
class AgentState(StatusEnum):
    """
    座席状态
    """
    LOGOUT = (0, '签出')
    LOGIN = (1, '签入')


@unique
class AdminEvent(StatusEnum):
    """
    created by chenhj at 2017/8/28

    """
    PACK_GIFT = ('1', '赠送套餐')
    SMS_POINT_GIFT = ('2', '赠送新订单提醒')
    DISPATCH_POINT_GIFT = ('3', '赠送派单点')
    BID_POINT_GIFT = ('4', '赠送汇币')
    VOUCHER_GIFT = ('5', '赠送代金券')


@unique
class CaptchaSmsChannel(StatusEnum):
    """
    发送验证码短信通道
    """
    MENG_WANG = ('mengwang', '移动梦网')
    ALI_DA_YU = ('alidayu', '阿里大于')
    NA = ('na', '不发短信')


@unique
class AdminRole(StatusEnum):
    """
    后台账号角色
    """
    ADMINISTRATOR = (1, '管理员')
    AGENT = (2, '客服')
    SEM = (3, 'SEM')
    MARKET = (4, '市场')
    OPERATION = (5, '运营')
    DEVELOPER = (6, '开发')
    PRODUCT = (7, '产品')
